import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<Card> cardList = CardDemo.buyDeck();
        CardDemo.shuffle(cardList);
        System.out.println("洗牌");
        System.out.println(cardList);
        List<List<Card>> ret = CardDemo.play(cardList);
        for (int i = 0; i < ret.size(); i++) {
            System.out.println("第" + (i+1) + "人的牌是" + ret.get(i));
        }
        System.out.println("剩余的牌为");
        System.out.println(cardList);
    }
}
